package com.example.nophase.entity;

import com.example.nophase.common.ApiModelProperty;

public class AreaListDto {

    @ApiModelProperty(value = "编号")
    private Integer id;

    @ApiModelProperty(value = "父ID")
    private Integer pid;

    @ApiModelProperty(value = "分类编号")
    private Integer cid;

    @ApiModelProperty(value = "节点名称")
    private String name;

    @ApiModelProperty(value = "自定义数据")
    private String data;

    @ApiModelProperty(value = "是否为叶子")
    private Boolean leaf;

    @ApiModelProperty(value = "深度")
    private Integer depth;

    @ApiModelProperty(value = "编号集合 逗号分隔")
    private String ids;

    @ApiModelProperty(value = "名称集合 逗号分隔")
    private String names;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Boolean getLeaf() {
        return leaf;
    }

    public void setLeaf(Boolean leaf) {
        this.leaf = leaf;
    }

    public Integer getDepth() {
        return depth;
    }

    public void setDepth(Integer depth) {
        this.depth = depth;
    }

    public String getIds() {
        return ids;
    }

    public void setIds(String ids) {
        this.ids = ids;
    }

    public String getNames() {
        return names;
    }

    public void setNames(String names) {
        this.names = names;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "AreaListDto{" +
                "id=" + id +
                ", pid=" + pid +
                ", cid=" + cid +
                ", name='" + name + '\'' +
                ", data='" + data + '\'' +
                ", leaf=" + leaf +
                ", depth=" + depth +
                ", ids='" + ids + '\'' +
                ", names='" + names + '\'' +
                ", sort=" + sort +
                '}';
    }
}
